﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;

namespace ZX.OA.Model
{
    public class Entity : DbContext
    {
        public DbSet<AssentInfo> AssentInfo { get; set; }
        public DbSet<AssentTypeInfo> AssentTypeInfo { get; set; }
        public DbSet<AttendanceInfo> AttendanceInfo { get; set; }
        public DbSet<DeptInfo> DeptInfo { get; set; }
        public DbSet<EmployeeInfo> EmployeeInfo { get; set; }
        public DbSet<EvectionInfo> EvectionInfo { get; set; }
        public DbSet<LeaveInfo> LeaveInfo { get; set; }
        public DbSet<MeetingInfo> MeetingInfo { get; set; }
        public DbSet<MeetingRoomInfo> MeetingRoomInfo { get; set; }
        public DbSet<MessageGroupInfo> MessageGroupInfo { get; set; }
        public DbSet<MessageInfo> MessageInfo { get; set; }
        public DbSet<NewsInfo> NewsInfo { get; set; }
        public DbSet<NewsTypeInfo> NewsTypeInfo { get; set; }
        public DbSet<PowerInfo> PowerInfo { get; set; }
        public DbSet<ProjectInfo> ProjectInfo { get; set; }
        public DbSet<ProjectStateInfo> ProjectStateInfo { get; set; }
        public DbSet<ProjectTypeInfo> ProjectTypeInfo { get; set; }
        public DbSet<RoleInfo> RoleInfo { get; set; }
        public DbSet<RolePowerInfo> RolePowerInfo { get; set; }
        public DbSet<StationeryInfo> StationeryInfo { get; set; }
        public DbSet<TaskInfo> TaskInfo { get; set; }
        public DbSet<UserInfo> UserInfo { get; set; }
        public DbSet<WorkLogInfo> WorkLogInfo { get; set; }
        //public Entity()
        //{
        //    System.Data.Entity.Database.SetInitializer(new System.Data.Entity.DropCreateDatabaseIfModelChanges<Entity>());
        //}
    }
}
